package cn.youframe.frame.base;

import java.util.List;
import java.util.Map;

/**
 * User: Administrator
 * DateTime: 13-2-20: 下午2:33
 */
public interface BaseDao {
    public String insertAndGetKey(final String sql,final Object[] paras);
    public Map<String,Object> insertAndGetKey(final String sql,final Object[] paras,final String[] keyColumns);
    public Map<String,Object> insertAndGetKey(final String sql,final String[] keyColumns);
    public <T> List<T> queryList(String sql,Class<T> requiredType);
    public <T> List<T> queryList(String sql,Class<T> requiredType,Object[] args);
    public <T> T queryObject(String sql,Class<T> requiredType);
    public <T> T queryObject(String sql,Class<T> requiredType,Object[] args);
    public int update(String sql);
    public int update(String sql,Object[] args);
    public int update(String sql,Object[] args,int[] argTypes);
}
